<div class="busdomain">
	<table class="paper-table">
		<thead>
			<td><h3>编号</h3></td>
			<td><h3>商家编号</h3></td>
			<td><h3>域名</h3></td>
			<td><h3>端口</h3></td>
			<td><h3>是否是二级域名</h3></td>
			<td><h3>操作</h3></td>
		</thead>
		<tr>
			<td><i class="icon-plus"></i></td>
			<td><input type="text" value="{{$Cache.admin.busdomain.new_domain.bus_id}}" bind-input="{{'$Cache.admin.busdomain.new_domain.bus_id'}}"></td>
			<td><input type="text" value="{{$Cache.admin.busdomain.new_domain.domain}}" bind-input="{{'$Cache.admin.busdomain.new_domain.domain'}}"></td>
			<td><inputnumber loop='1' min='1' max='65535' value="{{$Cache.admin.busdomain.new_domain.port||80}}" bind-input="{{'$Cache.admin.busdomain.new_domain.port'}}"></inputnumber></td>
			<td>
	            <android:switch checked="{{$Cache.admin.busdomain.new_domain.is_secondary_domain}}" bind-input="{{'$Cache.admin.busdomain.new_domain.is_secondary_domain'}}">
	            </android:switch>
            </td>
			<td><button event-click="{{'$Event.admin.busdomain.add_domain'}}">新增</button></td>
		</tr>
		{{#each $Cache.admin.busdomain.domain_list}}
		<tr>
			<td>{{$Index}}</td>
			<td>{{bus_id}}</td>
			<td>{{domain}}</td>
			<td>{{port}}</td>
			<td>{{is_secondary_domain?'是':'否'}}</td>
			<td><button event-click="{{'$Top.$Event.admin.busdomain.remove_domain'}}">删除</button></td>
		</tr>
		{{/each}}
	</table>
</div>